/*
 * @Description:user store
 * @Autor: lds
 * @LastEditors: lds
 */
import { createPinia, defineStore } from 'pinia';

export const useUserStore = defineStore({
    id: 'user',
    state: () => {
        return {
            name: 'Pinia',
        };
    },
    actions: {
        updateName(name) {
            this.name = name;
        },
    },
});
